﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<grupo2DEWStudio7i.Dominio.Cliente>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Lista
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Cliente</h2>
    <p style="color:Blue"><%: TempData["mensaje"] %></p>
    <table>
        <tr>
            <th></th>
            <th>Codigo</th>
            <th>Nombre</th>
            <th>Dni</th>
            <th>Clave</th>
            <th>Correo</th>
            <th>Fecnac</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { id = item.Codigo })%> |
                <%: Html.ActionLink("Detalle", "Details", new { cod = item.Codigo })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.Codigo })%>
            </td>
            <td>
                <%: item.Codigo%>
            </td>
            <td>
                <%: item.Nombre %>
            </td>
            <td>
                <%: item.Dni %>
            </td>
            <td>
                <%: item.Clave %>
            </td>
            <td>
                <%: item.Correo %>
            </td>
            <td>
                <%: item.FecNac %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Crear", "Create") %>
    </p>

</asp:Content>

